<div class="users form">
<?php echo $this->Form->create('User'); ?>
	<fieldset>
		<legend><?php echo __('Agregar Usuario'); ?></legend>
	<?php
		echo $this->Form->input('rut',array('label'=>'RUT'));
		echo $this->Form->input('username',array('label'=>'Nombre de Usuario'));
		echo $this->Form->input('password',array('label'=>'Contraseña'));
		echo $this->Form->input('nombres',array('label'=>'Nombres'));
		echo $this->Form->input('apellido_paterno',array('label'=>'Apellido Parterno'));
		echo $this->Form->input('apellido_materno',array('label'=>'Apellido Materno'));
		echo $this->Form->input('email',array('label'=>'Email'));
		echo $this->Form->input('phone', array('label'=>'Teléfono'));
		echo $this->Form->input('cel_phone', array('label'=>'Celular'));
		echo $this->Form->input('role_id', array('label'=>'Rol'));
		echo $this->Form->input('institution_id', array('label'=>'Institución'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar')); ?>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Listar Usuarios'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Listar Roles'), array('controller' => 'roles', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Rol'), array('controller' => 'roles', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Instituciones'), array('controller' => 'institutions', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Institución'), array('controller' => 'institutions', 'action' => 'add')); ?> </li>
	</ul>
</div>
